import entryFactory from "bpmn-js-properties-panel/lib/factory/EntryFactory";

import { is } from "bpmn-js/lib/util/ModelUtil";

export default function (group, element) {
  if (is(element, "bpmn:StartEvent")) {
    group.entries.push(
      entryFactory.textField({
        id: "title",
        label: "标题",
        modelProperty: "title",
      })
    );
  }
}
